package com.wu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wu.pojo.ArticleReport;

import java.util.Map;

/**
 * @author: 吴磊
 * @program: blog
 * @create: 2021-05-12 16:43
 */
public interface ArticleReportService extends IService<ArticleReport> {
    /**
     * 插入文章举报内容
     *
     * @param articleId
     * @param articleTitle
     * @param reportReason
     * @param added
     */
    void insertArticleReport(String articleId, String articleTitle, String reportReason, String added);


    /**
     * 通过Id删除举报
     *
     * @param reportId
     * @param type
     * @return
     */
    void deleteArticleReportById(String reportId, String type);

    /**
     * 获取所有未处理的文章举报
     *
     * @param curPage
     * @return
     */
    Map<String, Object> getAllArticleReport(Integer curPage);


    /**
     * 通过Id查看举报明细
     *
     * @param reportId
     * @return
     */
    Map<String, Object> getArticleReportById(String reportId);
}
